﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shuba.Model;

namespace Shuba.Business
{
    public class TopUpBulk
    {
        private Data.TopUpBulk _topUpBulk;
        
        public TopUpBulk() 
        {
            _topUpBulk = new Data.TopUpBulk();
        }

        public int GetRowNumberTopUpApproval(string update_by, string batch_id)
        {
            return _topUpBulk.GetRowNumberTopUpApproval(update_by, batch_id);
        }

        public int GetRowNumberTopUpByValues(string value, string batch_id)
        {
            return _topUpBulk.GetRowNumberTopUpByValues(value, batch_id);
        }

        public int GetRowNumberTopUpReal(string value, string batch_id)
        {
            return _topUpBulk.GetRowNumberTopUpReal(value,batch_id);
        }

        public int GetRowNumberTopUpFailed(string value, string batch_id)
        {
            return _topUpBulk.GetRowNumberTopUpFailed(value, batch_id);
        }

        public List<TopUpBulkInfo> GetListTopUp(string value, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return _topUpBulk.GetListTopUp(value, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public List<TopUpBulkInfo> GetListTopUpReal(string value, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return _topUpBulk.GetListTopUpReal(value, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public List<TopUpBulkInfo> GetListApprovalTopUp(string update_by, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return _topUpBulk.GetListApprovalTopUp(update_by, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public List<TopUpBulkInfo> GetListTopupFailed(string value, string batch_id, int currPage, int dataPerPage)
        {
            return _topUpBulk.GetListTopupFailed(value, batch_id, currPage, dataPerPage);
        }

        public TopUpBulkInfo GetApprovalByID(string CIF_NUMBER, string LOAN_NUMBER)
        {
            return _topUpBulk.GetApprovalByID(CIF_NUMBER, LOAN_NUMBER);
        }

        public TopUpBulkInfo GetApprovalByIDandBatchId(string CIF_NUMBER, string LOAN_NUMBER, string BATCH_ID)
        {
            return _topUpBulk.GetApprovalByIDandBatchId(CIF_NUMBER, LOAN_NUMBER, BATCH_ID);
        }

        public int ApproveBulk(string CIF_NUMBER, string LOAN_NUMBER, string BATCH_ID, string ActType)
        {
            return _topUpBulk.ApproveBulk(CIF_NUMBER.Trim(), LOAN_NUMBER.Trim(), BATCH_ID.Trim(), ActType);
        }

        public Int32[] ApproveBulkAll(string batch_id,string status)
        {
            return _topUpBulk.ApproveBulkAll(batch_id, status);
        }

        public int Reject(string CIF_NUMBER, string LOAN_NUMBER, string BATCH_ID)
        {
            return _topUpBulk.Reject(CIF_NUMBER.Trim(), LOAN_NUMBER.Trim(), BATCH_ID.Trim());
        }

        public void delete(string batch_id)
        {
             _topUpBulk.delete(batch_id);
        }

        public TopUpBulkInfo Get(string CIF_NUMBER, string LOAN_NUMBER)
        {
            return _topUpBulk.Get(CIF_NUMBER, LOAN_NUMBER);
        }

        public int deteleOnBulk(TopUpBulkInfo Info)
        {
            return _topUpBulk.deteleOnBulk(Info);
        }

        // FOR ESCEL TMP
        public List<TopUpBulkInfo> GetListTopUp(string value, string batch_id) 
        {
            return _topUpBulk.GetListTopUp(value, batch_id);
        }

        public List<TopUpBulkInfo> GetListTopUpRealExcel(string value, string batch_id)
        {
            return _topUpBulk.GetListTopUpRealExcel(value,batch_id);
        }
    }
}
